# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-vbam
pkgver=0_git20200311
pkgrel=0
_commit="29dffc0120681853855c2ce57911f9e2d33607dc"
pkgdesc="a fork of VBA-M with libretro integration"
url="https://github.com/libretro/vbam-libretro"
arch="all"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/vbam-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/vbam-libretro-$_commit"
options="!check" # No tests

build() {
	make -C src/libretro
}

package() {
	install -Dm644 src/libretro/vbam_libretro.so "$pkgdir"/usr/lib/libretro/vbam_libretro.so
}

sha512sums="3140e4b635d684f6895a01f8667b707a3af0322c84c7c0f1fc3cd1b75e1e8c4ee2844617bf6f2cd4df65a1b32c1df77524529cf3bf91c2f18e5814174022f9e3  libretro-vbam-29dffc0120681853855c2ce57911f9e2d33607dc.tar.gz"
